package jdbc;

import java.util.function.Consumer;

public class LambdaDemo2 {
    public static void main(String[] args) {
        // 单参数无返回值
        Consumer<String> consumer1 = s -> System.out.println(s);
        consumer1.accept("Hello World!");
        Consumer<String> consumer2 = System.out::println;
        consumer2.accept("你好，世界！");
    }
}
